package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_auto_task
 */
@TableName(value = "t_auto_task")
@Data
@NoArgsConstructor
public class TAutoTask implements Serializable {
  @TableId(type = IdType.ASSIGN_UUID, value = "id")
  private String id;
  
  /**
   * 任务名称
   */
  private String name;
  
  /**
   * 运行周期
   */
  private String cronExpression;
  
  private String groupName;
  /**
   * 任务状态（1正常 0暂停）
   */
  private String status;
  
  /**
   * 备注
   */
  private String remark;
  /**
   *
   */
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  /**
   *
   */
  @TableField(fill = FieldFill.UPDATE)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;
  /**
   * 执行类
   */
  private String beanClass;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}